package com.zlr.store.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * StoreCart entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "store_cart", catalog = "wxstore")
public class StoreCart implements java.io.Serializable {

	// Fields

	private String id;
	private String storeProductId;
	private Integer count;
	private String sysUserId;
	private Short state;

	// Constructors

	/** default constructor */
	public StoreCart() {
	}

	/** full constructor */
	public StoreCart(String id, String storeProductId, Integer count,
			String sysUserId, Short state) {
		this.id = id;
		this.storeProductId = storeProductId;
		this.count = count;
		this.sysUserId = sysUserId;
		this.state = state;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 50)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "store_product_id", nullable = false, length = 50)
	public String getStoreProductId() {
		return this.storeProductId;
	}

	public void setStoreProductId(String storeProductId) {
		this.storeProductId = storeProductId;
	}

	@Column(name = "count", nullable = false)
	public Integer getCount() {
		return this.count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	@Column(name = "sys_user_id", nullable = false, length = 50)
	public String getSysUserId() {
		return this.sysUserId;
	}

	public void setSysUserId(String sysUserId) {
		this.sysUserId = sysUserId;
	}

	@Column(name = "state", nullable = false)
	public Short getState() {
		return this.state;
	}

	public void setState(Short state) {
		this.state = state;
	}

}